#include <iostream>

using namespace std;

char a[100001];
int m,n,t,win1,win2,vit1,vit2;

int main()
{
    int q[10005],p[10005];
    while(scanf("%c",&a[t]) && a[t]!='E'){
        if(a[t]== 'W'){
            win1++; //11
            vit1++; //21
        }
        if(a[t] == 'L'){
            win2++; //11
            vit2++; //21
        }
        if((win1>=11 && win1-win2>1)||(win2>=11 && win2-win1>1)){
            q[m++] = win1;
            q[m++] = win2;
            win1 = 0;
            win2 = 0;
        }

        if((vit1>=21 && vit1-vit2>1)||(vit2>=21 && vit2-vit1>1)){
            p[n++] = vit1;
            p[n++] = vit2;
            vit1 = 0;
            vit2 = 0;
        }
        t++;
    }
    q[m++]=win1;
    q[m++]=win2;
    p[n++]=vit1;
    p[n++]=vit2;
    for(int i=0;i<m;i+=2){
        printf("%d:%d\n",q[i],q[i+1]);
    }
    printf("\n");
    for(int i=0;i<n;i+=2){
        printf("%d:%d\n",p[i],p[i+1]);
    }

    return 0;
}
